package cn.school.prevention.entity;

import cn.school.common.BaseVO;
import cn.school.common.utils.SysUserUtils;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@TableName("t_prevention_info")
public class Info extends BaseVO {
    
    private static final long serialVersionUID = -4508151626906893061L;
    /**
     * 主键id
     */

    @TableId
    @ApiModelProperty(value = "id", hidden = false)
    private Long id;

    /**
     * 防控标题
     */
    @ExcelProperty("防控标题")
    @ApiModelProperty(value = "防控标题", required = false)
    private String title;

    /**
     * 防控描述内容
     */
    @ExcelProperty("防控描述内容")
    @ApiModelProperty(value = "防控描述内容", required = false)
    private String descContent;

    /**
     * 防控类型1-健康码上传
     */
    @ExcelProperty("防控类型")
    @ApiModelProperty(value = "防控类型", required = false)
    private String type;

    /**
     * 开始日期
     */
    @ExcelProperty("开始日期")
    @ApiModelProperty(value = "开始日期", required = false)
    private String beginDate;
    /**
     * 结束日期
     */
    @ExcelProperty("结束日期")
    @ApiModelProperty(value = "结束日期", required = false)
    private String endDate;
    /**
     * 涉及范围(班级,年纪,全校)
     */
    @ExcelProperty("涉及范围")
    @ApiModelProperty(value = "涉及范围", required = false)
    private String scope;
    /**
     * 是否有效 0-无效 1-有效
     */
    @ExcelProperty("是否有效")
    @ApiModelProperty(value = "是否有效", required = false)
    private String status;

    /**
     * 班级ID
     */
    @ExcelProperty("班级ID")
    @ApiModelProperty(value = "班级ID", required = false)
    private String classId;

    /**
     * 年纪ID
     */
    @ExcelProperty("年纪ID")
    @ApiModelProperty(value = "年纪ID", required = false)
    private String gradeId;

    @TableField(exist = false)
    private List<String> classIds;

    @TableField(exist = false)
    private List<String> gradeIds;;
    @TableField(exist = false)
    private Integer pageNum;

    @TableField(exist = false)
    private Integer pageSize;
    /**
     * 默认租户为当前登录人的租户
     */
    private String tenantId = SysUserUtils.getSysUser().getTenantId();

}
